package com.wigball.java.jchef.model.common;

import java.util.LinkedList;

public final class Stack<E> {

	private LinkedList<E> list;
	
	public Stack() {
		list = new LinkedList<E>();
	}
	
	public void push(E item) {
		list.add(item);
	}
	
	public E pop() {
		return list.removeLast();
	}
	
	public int size() {
		return list.size();
	}
	
	public boolean isEmpty() {
		return list.isEmpty();
	}
}
